let express = require('express');
let Mock = require('mockjs');
let app = express();
app.get('/users',function(req,res){
   let result = Mock.mock({
       code:0,
       message:'成功',
       "data|20":[{
           "name":"@cname",
           "userId":"@id",
           "createAt":"@datetime"
       }]
   });
   res.json(result);
});
app.listen(7000);